import { Component, OnDestroy, OnInit } from "@angular/core";
import { FormBuilder, FormGroup, NgControl, Validators } from '@angular/forms';
import { Router } from "@angular/router";

@Component({
    selector: 'passport-login',
    templateUrl: './purchaseOrdersAdd.component.html',
    styleUrls: ['./purchaseOrdersAdd.component.less']
 })

 export class PurchaseOrdersAdd implements OnInit, OnDestroy {
    validateForm!: FormGroup;
    constructor(private fb: FormBuilder){

    }
    
    submitForm(): void {
    console.log('submit', this.validateForm.value);
    }
    ngOnDestroy(): void {
    }
    ngOnInit(): void {
        this.validateForm = this.fb.group({
            documentDate: [null],
            documentNumber: [null],
          });
    }


 }